>> The container image
for your application is a complete package that contains
the application binary and all the software that's required
for the application to run. When you deploy the same container
image on your development, test, and production environments,
you can be sure that your application will perform exactly the same way
in each of these environments. Cloud Build is a fully managed service
that enables you to set up Build pipelines to create a Docker
container image for your application and push the image to a Google
Cloud Container Registry. You don't need to download
all Build tools and container images to a Build machine
or manage your own Build infrastructure. By using Container Registry
in Cloud Build, you can create Build pipelines
that are automatically triggered when you commit code
to a repository. In Container Registry,
you can create a Build trigger that is executed
based on a trigger type. A trigger type specifies
whether a Build should be triggered based on commits
to a particular branch in a repository or commits
that contain a particular tag. You must also create
a Build configuration file that specifies the steps
in the Build pipeline. Steps are analogous
to commands or scripts that you execute to Build
your application. Each Build step
is a Docker container that's invoked by Cloud Build
when the Build is executed. The step name identifies a container
to invoke for the Build step. The images attribute contains
the name of the container image to be created
by this Build configuration. Cloud Build enables you to specify
different types of Source Repositories, tag container images
to enable searches, and create Build steps
that perform operations such as downloading and processing data
without even creating a container image. The Build configuration can be
specified in a Yaml or JSON format. Cloud Build mounts your source code
into the /workspace directory of the Docker container
associated with the Build step. The artifacts produced by
each Build step are persisted -in the /workspace folder, and can be
used by the following Build step. Cloud Build automatically pushes
the Build container image to Container Registry. In Container Registry, you can view
the status and history of builds. Cloud Build also publishes
Build status notifications to Pub Sub. You can subscribe to these
notifications to take action based on Build status
or other attributes. For more information, refer to the documentation
links in the Course Resources. TerraForm is an open source tool that lets you provision
Google Cloud resources. TerraForm lets you provision
Google Cloud resources, such as virtual machines,
containers, storage and networking, with declarative
configuration files. You just specify all the resources
needed for your application in a declarative format,
and deploy your configuration. HashiCorp configuration
language or HCL allows for concise
descriptions of resources using blocks,
arguments and expressions. This deployment can be repeated
over and over with consistent results. And you can delete an entire deployment
with one command or click. The benefit of
a declarative approach is that it allows you to specify
what the configuration should be and let the system
figure out the steps to take. Instead of deploying
each resource separately, you specify the set of resources
that compose the application or service, which allows you to focus
on the application. Unlike Cloud Shell,
TerraForm deploys resources in parallel. TerraForm uses the underlying
APIs of each Google Cloud Service to deploy your resources. This enables you to deploy
almost everything we've seen so far,
from instances, instance templates, and groups, to VPC networks, firewalls, VPN tunnels,
Cloud routers, and load balancers. For a full list
of supported resource types, refer to the Using TerraForm
with Google Cloud documentation link in the Course Resources. The TerraForm language is the user
interface to declare resources. Resources are
infrastructure objects, such as Compute Engine
virtual machines, storage buckets,
containers, or networks. A TerraForm configuration
is a complete document in the TerraForm language
that tells TerraForm how to manage a given
collection of infrastructure. A configuration can consist
of multiple files and directories The syntax of
the TerraForm language includes blocks that represent objects,
and can have zero or more labels. A block has a body that enables you
to declare arguments and nested blocks. Arguments are used
to assign a value to a name. And expression represents a value
that can be assigned to an identifier. TerraForm can be used
on multiple public and private Clouds. TerraForm is already
installed in Cloud Shell. The example TerraForm
configuration file shown starts
with a provider block that indicates that Google Cloud
is the provider. The region for the deployment
is specified inside the provider block. The resource block specifies
a Google Cloud Compute Engine instance or virtual machine. The details of the instance
to be created are specified
inside the resource block. The output block specifies an output
variable for the TerraForm module. In this case,
a value will be assigned to the output variable,
instance, underscore IP. The Cloud Foundation
toolkit provides a series of reference templates for config
connector in TerraForm, which reflect Google Cloud
best practices. These off the shelf
templates can be used to quickly build
a repeatable, enterprise ready foundation
in Google Cloud. Using the open source templates, you can automate repeatable
tasks and provision entire environments
in a consistent fashion. Teams can collaborate
on the infrastructure by participating in code reviews,
and suggesting source code changes. The Cloud Foundation toolkit
is designed specifically to meet the compliance
and security needs of enterprises. By creating a foundational
environment using these templates, you can be confident that best practices
are implemented out of the box, including key security
and governance controls. With the Cloud Foundation toolkit,
you don't need to spend time developing your own templates
and patterns for Google Cloud. Instead, you can build
on open source templates and focus only
on the customizations, which are unique
to your company and workloads. Developers can move faster and
migrations are less time consuming. Each template from the Cloud Foundation
toolkit can be used independently. You can choose which patterns
makes sense for your organization, and add new ones
as your environment involves. The open source templates
can easily be forked and modified to suit
your organization's needs. By adopting the toolkit, you can
be confident that different teams are deploying their applications
and environments using a consistent
set of tools and patterns. This reduces the potential for
misconfigurations and inconsistencies while allowing easier collaboration
across different teams. For more information,
refer to the Cloud Foundation toolkit documentation link
in the course resources.